import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import "./assets/font/iconfont.css"
import "../src/assets/css/base.css"
import "amfe-flexible"
import {
  Tab,
  Tabs,
  Lazyload,
  Swipe,
  SwipeItem,
  Popup,
  List ,
  Icon ,
  Empty,
  Loading,
  Search,
  DropdownMenu, DropdownItem , 
  Cell,
  Field,
  Button ,
  Toast,
} from 'vant';

Vue.use(Tab).use(Tabs).use(Lazyload, {
  lazyComponent: true,
}).use(Swipe).use(SwipeItem).use(Popup).use(List).use( Icon ).use(Empty ).use(Loading ).use(Search).use(DropdownMenu).use(DropdownItem).use(Cell).use(Field).use(Button ).use(Toast);



import * as myFilters from './components/myFilters'
Object.keys(myFilters).forEach(item=>{
  Vue.filter(item,myFilters[item])
})
Object.keys(myFilters).forEach(item=>{
  Vue.filter(item,myFilters[item])
})
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')